Skip to content

Preserve caller data for timezone-aware curves - #794

Open
pengpengyi92 wants to merge 1 commit into
Point72:mainfrom
pengpengyi92:codex/preserve-timezone-curve-input
Open

pengpengyi92 wants to merge 1 commit into
Point72:mainfrom
pengpengyi92:codex/preserve-timezone-curve-input

Conversation

@pengpengyi92

Copy link
Copy Markdown

Problem

When a list of timezone-aware ticks is passed to csp.curve, the adapter currently rewrites the caller's list with naive UTC datetimes. Code that reuses the source list loses the original timezone metadata.

Change

Normalize timezone-aware and relative input into adapter-local lists; already naive inputs and the NumPy path are unchanged. The regression reuses the same list across two runs, checks UTC output, and verifies the input still contains the original aware timestamp.

Validation

Python 3.12/Windows with the exact checkout's Python curve module and CSP 0.19.0's published native engine. The new regression fails on main but the four controls pass. All five pass with the patch. No native rebuild or full CI matrix run locally.

Signed-off-by: Pengyi Peng <74917296+pengpengyi92@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant